<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>AccessViolationException</title>
    <link rel="stylesheet" href="../../CSS/css_initialize.css" />
    <link rel="stylesheet" href="../../CSS/css_common.css" />
  </head>
  <body>
    <div class="flex-row">
      <div class="sidebar">
        <ol class="sidebar-content">
          <li class="sidebar-item-h1"><a href="#Title">AccessViolationException</a></li>
          <li class="sidebar-item-h1"><a href="#Dfinition">定义</a></li>
          <li class="sidebar-item-h1"><a href="#Instruction">说明</a></li>
          <li class="sidebar-item-h1"><a href="#Constructor">构造函数</a></li>
        </ol>
      </div>
      <div class="content">
        <header>
          <h1 id="Title">AccessViolationException</h1>
          <nav class="head-nav"><a class="fl" href="./003002SystemException.html">上一篇</a><a class="fr" href="./003004AggregateException.html">下一篇</a></nav>
        </header>
        <section>
          <h2 id="Dfinition">定义</h2>
          <div class="block-code">
            <p>C#</p>
            <pre>public class AccessViolationException : SystemException</pre>
          </div>
          <p>命名空间：<a href="../System.html">System</a></p>
          <p>程序集：System.Runtime.dll</p>
          <p><span class="tag class-tag">类</span></p>
        </section>
        <section>
          <h2 id="Instruction">说明</h2>
          <p><span class="inline-code">AccessViolationException</span>是当尝试读取或写入受保护的内存时抛出的异常。</p>
        </section>
        <section>
          <h2 id="Constructor">构造函数</h2>
          <div class="block-code">
            <p>C#</p>
            <pre>public AccessViolationException()
public AccessViolationException(string? message)
public AccessViolationException(string? message, Exception? innerException)</pre>
          </div>
          <p>以当前系统区域下系统提供的错误描述或传入参数初始化实例的<span class="inline-code">Message</span>或<span class="inline-code">InnerException</span>属性。</p>
        </section>
        <footer>
          <nav class="foot-nav"><a class="fl" href="./003002SystemException.html">上一篇</a><a class="fr" href="./003004AggregateException.html">下一篇</a></nav>
        </footer>
      </div>
    </div>
  </body>
</html>
